/*
 * Customer notice page — faithful implementation of the approved mockup.
 * The site's existing body/background declarations intentionally remain untouched.
 */

.notice-page-shell {
    width: 1230px !important;
    max-width: calc(100% - 48px);
    margin: 48px auto 88px;
    position: relative;
    z-index: 1;
}

.notice-page-shell,
.notice-page-shell * {
    box-sizing: border-box;
}

.notice-page-shell::before {
    content: none;
}

.notice-hero {
    width: fit-content;
    margin: 0 auto 28px;
    padding: 0 62px;
    position: relative;
    text-align: center;
}

.notice-hero::before,
.notice-hero::after {
    content: "✦";
    position: absolute;
    top: 13px;
    color: #8a7cff;
    font-size: 19px;
    text-shadow: 0 0 12px rgba(133, 120, 255, 0.9);
}

.notice-hero::before {
    left: 8px;
}

.notice-hero::after {
    right: 8px;
    color: #e46cc9;
}

.notice-hero-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.notice-hero-title img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(124, 120, 255, 0.65));
}

.notice-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1.16;
    text-shadow: 0 0 24px rgba(205, 158, 255, 0.2);
}

.notice-hero p {
    margin: 12px 0 0;
    color: rgba(236, 239, 251, 0.68);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.045em;
}

.notice-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 26px;
}

.notice-filter {
    min-width: 150px;
    height: 43px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(152, 181, 230, 0.24);
    border-radius: 9px;
    background: rgba(7, 17, 40, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    color: rgba(235, 238, 251, 0.69);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.notice-filter:nth-child(3) {
    min-width: 162px;
}

.notice-filter:nth-child(4) {
    min-width: 194px;
}

.notice-filter:nth-child(5) {
    min-width: 134px;
}

.notice-filter:hover,
.notice-filter:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(100, 224, 255, 0.72);
    color: #fff;
    outline: none;
}

.notice-filter.is-active {
    border-color: rgba(130, 220, 255, 0.7);
    background: linear-gradient(110deg, #36c9f1 0%, #8589eb 51%, #ca45b2 100%);
    box-shadow: 0 8px 22px rgba(63, 194, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
}

.notice-page-shell .notice-board {
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    gap: 25px !important;
}

.notice-page-shell .notice-featured {
    width: 100% !important;
    min-height: 305px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 468px minmax(0, 1fr) !important;
    gap: 0 !important;
    position: relative;
    overflow: hidden !important;
    isolation: isolate;
    border: 1px solid rgba(104, 215, 248, 0.8) !important;
    border-radius: 17px !important;
    background: linear-gradient(112deg, rgba(7, 20, 45, 0.96), rgba(25, 15, 48, 0.95)) !important;
    box-shadow: 0 22px 48px rgba(2, 7, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    cursor: pointer;
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.notice-page-shell .notice-featured::before {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 1px solid transparent;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(82, 224, 255, 0.74), transparent 40%, transparent 67%, rgba(228, 78, 201, 0.86)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.notice-page-shell .notice-featured:hover,
.notice-page-shell .notice-featured:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(235, 99, 214, 0.86) !important;
    box-shadow: 0 26px 56px rgba(2, 7, 23, 0.4), 0 0 25px rgba(94, 215, 249, 0.1) !important;
    outline: none;
}

.notice-page-shell .featured-visual {
    width: 468px !important;
    height: 305px !important;
    min-height: 305px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(6, 14, 32, 0.8);
    box-shadow: none !important;
}

.notice-page-shell .featured-banner-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.notice-page-shell .featured-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent 76%, rgba(9, 18, 41, 0.82) 100%);
    pointer-events: none;
}

.notice-page-shell .featured-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 305px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 48% 45%, rgba(103, 220, 250, 0.18), transparent 34%),
                linear-gradient(145deg, rgba(35, 63, 99, 0.86), rgba(41, 22, 61, 0.9));
}

.notice-page-shell .featured-image-placeholder img {
    width: 122px;
    height: 122px;
    object-fit: contain;
    opacity: 0.78;
}

.notice-page-shell .featured-info {
    min-width: 0;
    height: 305px;
    margin: 0;
    padding: 34px 30px 28px 12px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;
    position: relative;
    z-index: 2;
}

.featured-meta {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.notice-page-shell .featured-category-badge {
    min-width: 107px;
    height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: linear-gradient(115deg, #da42b9, #676fd8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.notice-date {
    margin: 0 !important;
    color: rgba(224, 229, 246, 0.56) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.notice-page-shell .featured-info h2 {
    margin: 16px 0 12px !important;
    color: #fff;
    font-size: clamp(27px, 2.3vw, 36px) !important;
    font-weight: 900;
    line-height: 1.35 !important;
    letter-spacing: 0.015em;
}

.notice-page-shell .featured-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 !important;
    color: rgba(235, 238, 251, 0.7);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notice-page-shell .notice-detail-button {
    min-width: 205px;
    height: 51px;
    margin: 24px 0 0 !important;
    padding: 0 26px;
    align-self: flex-start !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background:
        linear-gradient(rgba(10, 28, 55, 0.95), rgba(18, 23, 53, 0.95)) padding-box,
        linear-gradient(100deg, #4dddf6, #df50bd) border-box !important;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}

.notice-page-shell .notice-detail-button span {
    font-size: 24px;
    font-weight: 300;
    line-height: 0.7;
}

.notice-page-shell .notice-detail-button:hover {
    filter: brightness(1.14);
    transform: translateX(2px);
}

.notice-latest {
    display: grid;
    gap: 14px;
}

.notice-section-heading {
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.notice-section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-heading-line {
    display: none;
}

.notice-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.notice-count {
    min-width: 42px;
    height: 31px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(128, 214, 255, 0.18);
    border-radius: 9px;
    background: rgba(20, 48, 87, 0.72);
    color: rgba(218, 232, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.notice-list {
    display: grid;
    gap: 7px;
}

.notice-page-shell .notice-row {
    width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    display: grid !important;
    grid-template-columns: 96px 112px 184px minmax(250px, 310px) minmax(220px, 1fr) 50px !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(117, 162, 226, 0.3) !important;
    border-radius: 14px !important;
    background: linear-gradient(110deg, rgba(6, 18, 42, 0.9), rgba(21, 15, 44, 0.89)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.notice-page-shell .notice-row::before {
    content: none !important;
    display: none !important;
}

.notice-page-shell .notice-row:hover,
.notice-page-shell .notice-row:focus-visible {
    transform: translateX(3px);
    border-color: rgba(103, 223, 248, 0.64) !important;
    background: linear-gradient(110deg, rgba(9, 27, 56, 0.95), rgba(31, 18, 56, 0.94)) !important;
    outline: none;
}

.notice-page-shell .notice-icon {
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.notice-page-shell .notice-icon img {
    width: 62px !important;
    height: 62px !important;
    object-fit: contain;
    transition: transform 180ms ease;
}

.notice-row:hover .notice-icon img,
.notice-row:focus-visible .notice-icon img {
    transform: scale(1.05);
}

.notice-page-shell .notice-category-tag {
    min-width: 92px !important;
    width: fit-content !important;
    height: 35px !important;
    margin: 0 auto !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: static !important;
    transform: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    background: linear-gradient(120deg, #7c68e0, #5964bf) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), 0 0 12px rgba(0, 0, 0, 0.14) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center;
    white-space: nowrap;
}

.notice-page-shell .notice-row.event .notice-category-tag {
    background: linear-gradient(120deg, #d449bc, #6676df) !important;
}

.notice-page-shell .notice-row.maintenance .notice-category-tag {
    background: linear-gradient(120deg, #40bfe7, #467ed4) !important;
}

.notice-page-shell .notice-row.update .notice-category-tag {
    background: linear-gradient(120deg, #22daa0, #08a974) !important;
}

.notice-row-date {
    justify-self: start;
    padding-left: 16px;
}

.notice-row-main {
    min-width: 0;
    padding-left: 20px;
}

.notice-page-shell .notice-row-main h3 {
    overflow: hidden;
    margin: 0 !important;
    color: #fff;
    font-size: 17px !important;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-page-shell .notice-preview {
    display: -webkit-box !important;
    overflow: hidden;
    margin: 0 !important;
    padding-left: 11px;
    color: rgba(226, 231, 247, 0.57);
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notice-page-shell .notice-row-actions {
    width: 50px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
    justify-self: end;
}

.notice-page-shell .notice-arrow {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(218, 231, 255, 0.75);
    font-size: 31px !important;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    transform: none !important;
    transition: transform 180ms ease, color 180ms ease;
}

.notice-page-shell .notice-status-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: #5ce4ff;
    box-shadow: 0 0 10px rgba(92, 228, 255, 0.9);
}

.notice-page-shell .notice-status-dot[hidden] {
    display: none !important;
}

.notice-page-shell .notice-row:hover .notice-arrow,
.notice-page-shell .notice-row:focus-visible .notice-arrow {
    color: #6ee2f6;
    transform: translateX(3px) !important;
}

.notice-empty {
    min-height: 170px;
    padding: 32px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 1px dashed rgba(143, 190, 255, 0.3);
    border-radius: 17px;
    background: rgba(8, 18, 40, 0.48);
    color: rgba(233, 237, 251, 0.66);
    text-align: center;
}

.notice-empty img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0.65;
}

.notice-empty p {
    margin: 0;
    font-weight: 700;
}

.notice-page-shell .pagination {
    margin: 4px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notice-page-shell .page-btn,
.notice-page-shell .current-page {
    min-width: 84px;
    padding: 9px 15px;
    border: 1px solid rgba(139, 192, 255, 0.28);
    border-radius: 999px;
    background: rgba(9, 22, 46, 0.7);
    color: rgba(244, 246, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.notice-page-shell .page-btn:hover {
    border-color: #69dff5;
    color: #fff;
}

.notice-page-shell .page-btn.disabled {
    opacity: 0.38;
}

.notice-page-shell .current-page {
    min-width: auto;
    border-color: transparent;
    background: transparent;
}

@media (max-width: 1120px) {
    .notice-page-shell .notice-featured {
        grid-template-columns: 40% minmax(0, 1fr) !important;
    }

    .notice-page-shell .featured-visual {
        width: 100% !important;
    }

    .notice-page-shell .notice-row {
        grid-template-columns: 78px 96px 158px minmax(190px, 1fr) minmax(180px, 0.9fr) 46px !important;
    }
}

@media (max-width: 760px) {
    .notice-page-shell {
        width: calc(100% - 24px) !important;
        margin: 30px auto 64px !important;
    }

    .notice-hero {
        margin-bottom: 22px;
        padding: 0 42px;
    }

    .notice-hero::before,
    .notice-hero::after {
        top: 9px;
        font-size: 15px;
    }

    .notice-hero-title {
        gap: 10px;
    }

    .notice-hero-title img {
        width: 36px;
        height: 36px;
    }

    .notice-hero h1 {
        font-size: 31px !important;
        white-space: nowrap;
    }

    .notice-hero p {
        margin-top: 8px;
        font-size: 11px;
    }

    .notice-filters {
        justify-content: flex-start;
        gap: 8px;
        margin-right: -12px;
        margin-bottom: 20px;
        padding: 2px 12px 6px 0;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .notice-filters::-webkit-scrollbar {
        display: none;
    }

    .notice-filter,
    .notice-filter:nth-child(n) {
        min-width: auto;
        height: 38px;
        padding: 0 17px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 12px;
    }

    .notice-page-shell .notice-board {
        gap: 24px !important;
    }

    .notice-page-shell .notice-featured {
        display: block !important;
        min-height: 0 !important;
        border-radius: 17px !important;
    }

    .notice-page-shell .featured-visual,
    .notice-page-shell .featured-banner-image,
    .notice-page-shell .featured-image-placeholder {
        width: 100% !important;
        height: 195px !important;
        min-height: 195px !important;
    }

    .notice-page-shell .featured-visual::after {
        background: linear-gradient(180deg, transparent 60%, rgba(9, 18, 41, 0.84) 100%);
    }

    .notice-page-shell .featured-info {
        width: 100%;
        height: auto;
        padding: 21px 19px 20px !important;
    }

    .notice-page-shell .featured-category-badge {
        min-width: 88px;
        height: 30px;
        font-size: 11px;
    }

    .notice-date {
        font-size: 11px !important;
    }

    .notice-page-shell .featured-info h2 {
        margin: 12px 0 9px !important;
        font-size: 22px !important;
    }

    .notice-page-shell .featured-desc {
        font-size: 12px;
        line-height: 1.7;
    }

    .notice-page-shell .notice-detail-button {
        width: 100%;
        min-width: 0;
        height: 45px;
        margin-top: 17px !important;
    }

    .notice-section-heading {
        padding: 0 2px;
    }

    .notice-section-heading h2 {
        font-size: 19px;
    }

    .notice-count {
        min-width: 36px;
        height: 27px;
        padding: 0 9px;
        font-size: 10px;
    }

    .notice-list {
        gap: 8px;
    }

    .notice-page-shell .notice-row {
        height: auto !important;
        min-height: 96px !important;
        padding: 12px 13px !important;
        grid-template-columns: 54px minmax(0, 1fr) 35px !important;
        grid-template-areas:
            "icon meta actions"
            "icon title actions"
            "icon preview actions" !important;
        gap: 3px 11px !important;
        border-radius: 14px !important;
    }

    .notice-page-shell .notice-icon {
        grid-area: icon;
        width: 50px !important;
        height: 50px !important;
    }

    .notice-page-shell .notice-icon img {
        width: 46px !important;
        height: 46px !important;
    }

    .notice-page-shell .notice-category-tag {
        grid-area: meta;
        min-width: 66px !important;
        width: fit-content !important;
        height: 24px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        justify-self: start;
        font-size: 10px !important;
    }

    .notice-row-date {
        grid-area: meta;
        justify-self: start;
        margin-left: 76px !important;
        padding-left: 0;
    }

    .notice-row-main {
        grid-area: title;
        padding-left: 0;
    }

    .notice-page-shell .notice-row-main h3 {
        font-size: 14px !important;
    }

    .notice-page-shell .notice-preview {
        grid-area: preview;
        padding-left: 0;
        font-size: 11px !important;
        line-height: 1.45 !important;
        -webkit-line-clamp: 1;
    }

    .notice-page-shell .notice-row-actions {
        grid-area: actions;
        width: 35px;
        gap: 7px;
    }

    .notice-page-shell .notice-arrow {
        font-size: 25px !important;
    }

    .notice-page-shell .notice-status-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 390px) {
    .notice-page-shell {
        width: calc(100% - 18px) !important;
    }

    .notice-hero {
        padding: 0 32px;
    }

    .notice-hero h1 {
        font-size: 28px !important;
    }

    .notice-page-shell .notice-row {
        grid-template-columns: 48px minmax(0, 1fr) 33px !important;
        grid-template-areas:
            "icon meta actions"
            "icon title actions"
            "icon preview actions" !important;
        gap: 3px 9px !important;
    }

    .notice-page-shell .notice-icon {
        width: 44px !important;
        height: 44px !important;
    }

    .notice-page-shell .notice-icon img {
        width: 42px !important;
        height: 42px !important;
    }

    .notice-page-shell .notice-row-actions {
        width: 33px;
        gap: 6px;
    }

    .notice-row-date {
        margin-left: 72px !important;
        max-width: calc(100% - 72px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
